#include <iostream>
#include <iomanip>
#include <cmath>
#include <cstdio>
#include <cstdlib>
using namespace std;

typedef unsigned long LONG;

string Winner[2] = { "Stan wins.", "Ollie wins."};


/* main
 *  * */
int main() {
	std::ios_base::sync_with_stdio (true);
	LONG N;
	cin >> N;
	do {
		if ( N > 55009980288)  cout << Winner[1] << endl; 
		else if (N > 612220032) cout << Winner[0] << endl;
		else if (N > 306110016) cout << Winner[1] << endl;
		else if (N > 34012224) cout << Winner[0] << endl;
		else if (N > 17006112) cout << Winner[1] << endl;
		else if (N > 1889568) cout << Winner[0] << endl;
		else if (N > 944784) cout << Winner[1] << endl;
		else if (N > 104976) cout << Winner[0] << endl;
		else if (N > 52488) cout << Winner[1] << endl;
		else if (N > 5832) cout << Winner[0] << endl;
		else if (N > 2916) cout << Winner[1] << endl;
		else if (N > 324) cout << Winner[0] << endl;
		else if (N > 162) cout << Winner[1] << endl;
		else if (N > 18) cout << Winner[0] << endl;
		else if (N > 9) cout << Winner[1] << endl;
		else if (N >= 1) cout << Winner[0] << endl;
		cin >> N;
	} while(cin.eof() == false);
	return 0;
}
